<table cellpadding=0 cellspacing=0 class="dTable">
    <thead>
        <tr>
            <th colspan="1" width="50px" class="xleft">编号</th>
            <th colspan="1" width="50px" class="xleft">头像</th>
            <th colspan="1" width="180px" class="xleft">姓名</th>
            <th colspan="1" width="80px" class="xleft">性别</th>
            <th colspan="1" width="80px" class="xleft">电话</th>
            <th colspan="1" width="80px" class="xleft">邮箱</th>
            <th colspan="1" width="80px" class="xleft">地区</th>
            <th colspan="1" width="80px" class="xleft">订单数量</th>
            <th colspan="1" width="80px" class="xleft">操作</th>
        </tr>
    </thead>
    <tbody>
        {strip}
            {section name=ls loop=$list}
                <tr {if $smarty.section.ls.index is odd by 1}class="odd"{/if}>
                    <td colspan="1" class="xleft">#{$list[ls].cid}</td>
                    <td colspan="1" class="xleft">
                        <img class='ccl-head' 
                             src='{if $list[ls].client_head eq ''}{$docroot}static/images/icon/iconfont-weixin.png{else}{$list[ls].client_head}/0{/if}' />
                    </td>
                    <td colspan="1" class="xleft">{$list[ls].client_name}</td>
                    <td colspan="1" class="xleft">{if $list[ls].client_sex eq ''}未知{else}{$list[ls].client_sex}{/if}</td>
                    <td colspan="1" class="xleft">{$list[ls].client_phone}</td>
                    <td colspan="1" class="xleft">{$list[ls].client_email}</td>
                    <td colspan="1" class="xleft">{$list[ls].client_address}</td>
                    <td colspan="1" class="xleft">
                        {if $list[ls].order_count eq 0}
                            {$list[ls].order_count}
                        {else}
                            <a href="{$docroot}?/WdminPage/list_customer_orders/id={$list[ls].cid}">{$list[ls].order_count} (查看)</a>
                        {/if}
                    </td>
                    <td colspan="1" class="xleft" data-cid='{$list[ls].cid}'>
                        <a class='del' href='javascript:;'>删除</a> / <a href='javascript:;'>编辑</a> / <a href='javascript:;'>邮件</a>
                    </td>
                </tr>
            {/section}
        {/strip}
    </tbody>
</table>